Workaround for GLib's recursive moving error, e.g. with bound mounts
authorTsu Jan <tsujan2000@gmail.com>
Sun, 21 Apr 2019 19:37:07 +0000 (00:07 +0430)
committerAlf Gaida <agaida@siduction.org>
Tue, 22 Oct 2019 21:52:39 +0000 (22:52 +0100)
commit80b35709a8643b9e85e57bb16237a59633576dad
tree5d015cd443d9b3c67cf5f39726a8ee1a4c3c69f7
parent516737edec42dce66dbb176fae241c96d69618b5
Workaround for GLib's recursive moving error, e.g. with bound mounts

`g_file_move()` may not work recursively on the same filesystem, especially
with bound mounts (to `/mnt`, for example) and give the `G_IO_ERROR_WOULD_RECURSE`
error. This patch ignores the error and tries our `FileTransferJob::copyFile()`.

Closes https://github.com/lxqt/pcmanfm-qt/issues/943

Gbp-Pq: Name workaround-glib-recursive-moving-error.patch
src/core/filetransferjob.cpp